Skip to content

Conversation

TomasLeTrain
Copy link

m_offset = rotation - raw;

This expands to
m_offset = rotation - (from_cDeg(result * m_gyroScalar) + m_offset);
which means the old offset affects the new one. This results in getRotation() returning rotation - offset rather than rotation after the second time setRotation() has been called.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant